package po.emp;

import java.time.LocalDateTime;

/**
 * 考勤类
 * 
 * @author admin
 *
 */
public class Attendance {
	private int atteId;
	private LocalDateTime atteTime;
	private Empoyee empoyee; // 员工
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + atteId;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Attendance other = (Attendance) obj;
		if (atteId != other.atteId)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Attendance [atteId=" + atteId + ", atteTime=" + atteTime + ", empoyee=" + empoyee + "]";
	}
	public int getAtteId() {
		return atteId;
	}
	public void setAtteId(int atteId) {
		this.atteId = atteId;
	}
	public LocalDateTime getAtteTime() {
		return atteTime;
	}
	public void setAtteTime(LocalDateTime atteTime) {
		this.atteTime = atteTime;
	}
	public Empoyee getEmpoyee() {
		return empoyee;
	}
	public void setEmpoyee(Empoyee empoyee) {
		this.empoyee = empoyee;
	}
	public Attendance(int atteId, LocalDateTime atteTime, Empoyee empoyee) {
		super();
		this.atteId = atteId;
		this.atteTime = atteTime;
		this.empoyee = empoyee;
	}
	public Attendance() {
		super();
	}

}
